package com.zh.goods.service.impl;


import com.zh.goods.dao.GoodsRecordDao;
import com.zh.goods.domain.GoodsRecordDO;
import com.zh.goods.service.GoodsRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class GoodsRecordServiceImpl implements GoodsRecordService {
	@Autowired
	private GoodsRecordDao goodsRecordDao;
	
	@Override
	public GoodsRecordDO get(Long id){
		return goodsRecordDao.get(id);
	}
	
	@Override
	public List<GoodsRecordDO> list(Map<String, Object> map){
		return goodsRecordDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return goodsRecordDao.count(map);
	}
	
	@Override
	public int save(GoodsRecordDO goodsRecord){
		return goodsRecordDao.save(goodsRecord);
	}
	
	@Override
	public int update(GoodsRecordDO goodsRecord){
		return goodsRecordDao.update(goodsRecord);
	}
	
	@Override
	public int remove(Long id){
		return goodsRecordDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return goodsRecordDao.batchRemove(ids);
	}
	
}
